var ec_left2 = echarts.init(document.getElementById('l1'));
var ec_left2_option = {
	//标题样式
	title:{
		text:"Top10图书类型",
		textStyle:{
			color:'white',
		},
		left:'left'
	},
	color:['#e5e90c'],
	tooltip:{
		trigger:'axis',
		axisPointer:{
			type:'shadow'
		}
	},
	yAxis:{
		type:'category',
		axisLabel: {
						interval: 0,    //强制文字产生间隔
						rotate: -45,     //文字旋转45°
						textStyle: {    //文字样式
								     color: "white",
						            fontSize: 10,
						            // fontFamily: 'Microsoft YaHei'
						            }
					   },
		data:['type1','type2','type3','type4','type5','type6','type7','type8','type9','type10']
	},
	xAxis:{
		type:'value'
	},
	series:[{
		data:[1245,820,51,666,927,249,124,213,583,488],
		type:'bar',
		barMaxWidth:"50%"
	}]
};
ec_left2.setOption(ec_left2_option)